package com.ohos.connect.devicecloud.app.modular.projectuser.model.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.ohos.connect.devicecloud.app.modular.projectuser.enums.ProjectUserConfirmEnum;
import com.ohos.connect.devicecloud.app.modular.projectuser.enums.ProjectUserRoleEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

/**
 * APP项目用户实体
 *
 * @author Dongtao
 * @date  2024/12/05 11:05
 **/
@Getter
@Setter
@TableName("APP_PROJECT_USER")
public class ProjectUser {

    /** ID */
    @TableId
    @ApiModelProperty(value = "ID", position = 1)
    private String id;

    /** 项目ID */
    @ApiModelProperty(value = "项目ID", position = 2)
    private String projectId;

    /** app用户ID */
    @ApiModelProperty(value = "app用户ID", position = 3)
    private String appUserId;

    /** APP用户角色。1:owner,2:participant */
    @ApiModelProperty(value = "APP用户角色。1:owner,2:participant", position = 4)
    private ProjectUserRoleEnum role;

    /** APP用户确认状态。0:已确认 */
    @ApiModelProperty(value = "APP用户确认状态。0:已确认", position = 4)
    private ProjectUserConfirmEnum confirmStatus;

    /** 删除标志 */
    @ApiModelProperty(value = "删除标志", position = 5)
    @TableLogic
    @TableField(fill = FieldFill.INSERT)
    private String deleteFlag;

    /** 创建时间 */
    @ApiModelProperty(value = "创建时间", position = 6)
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    /** 创建用户 */
    @ApiModelProperty(value = "创建用户", position = 7)
    @TableField(fill = FieldFill.INSERT)
    private String createUser;

    /** 修改时间 */
    @ApiModelProperty(value = "修改时间", position = 8)
    @TableField(fill = FieldFill.UPDATE)
    private Date updateTime;

    /** 修改用户 */
    @ApiModelProperty(value = "修改用户", position = 9)
    @TableField(fill = FieldFill.UPDATE)
    private String updateUser;
}
